import axios from '../utils/http'
export async function getSpecsList(page,size){
    const res=await axios.get('/api/specslist',{params:{page,size}})
    if(res.code==200){
        return res.list
    }
    return false
}
export async function getSpecsCount(){
    const res=await axios.get('/api/specscount')
    if(res.code==200){
        return res.list[0].total
    }
    return false
}
export async function getSpecsById(id){
    const res=await axios.get('/api/specsinfo',{params:{id}})
    if(res.code==200){
        return res.list
    }
    return false
}
